package com.lei.config;

import com.mchange.v2.c3p0.ComboPooledDataSource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

import javax.sql.DataSource;
import java.beans.PropertyVetoException;

/**
 * @ClassName SpringConfiguration
 * @Description TODO
 * @Author Admin
 * @Date 2021/8/4 13:53
 * @Version 1.0
 */
//Configuration用于指定该类是springp配置类，当创建容器时会从该类加载注释
@Configuration
//ComponentScan用于指定spring在初始化中要扫描的包
@ComponentScan("com.lei")
@Import(DataSourceConfiguration.class)
public class SpringConfiguration {

}
